from tkinter import *

class app:
    def __init__(self,roots):
        fm1 = Frame(roots)
        Button(fm1,text='创建列表').pack(side=TOP,anchor=W,fill=X,expand=YES)
        Button(fm1, text='删除列表').pack(side=TOP, anchor=W, fill=X, expand=YES)
        Button(fm1, text='搜索列表').pack(side=TOP, anchor=W, fill=X, expand=YES)
        fm1.pack(side=LEFT,ipady=100,expand=YES)

        fm2 = Frame(roots)
        Label(fm2,text='name').pack(side=LEFT)
        Label(fm2, text='age').pack(side=LEFT)
        Label(fm2, text='gender').pack(side=LEFT)
        fm2.pack(side=TOP,ipadx=200)

root = Tk()
root.title('管理系统')
root.geometry('500x500')
com = app(root)
root.mainloop()

